package com.cn.service.server.ComponentMechanical;

import com.cn.bean.pojo.ComponentMechanical.OutsourcingResult;
import com.cn.bean.pojo.TechnologicalStandard.GrindingProcessStandardMain;
import com.cn.bean.pojo.workOrder.GrindingReturnSubTable;
import com.cn.bean.pojo.workOrder.OutsourcingResultMainTable;
import com.cn.bean.pojo.workOrder.OutsourcingResultSubTable;
import com.cn.config.config.Result;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OutsourcingResultService {
    List<OutsourcingResult> selectOutsourcingResultList(int page,int limit, String processName);
    List<OutsourcingResultSubTable>selectGrindingReturn(OutsourcingResultSubTable outsourcingResultSubTable);
    List<OutsourcingResultSubTable>selectGrindingReturnSub(int id);
    int insertOutsourcingResultMain(OutsourcingResultMainTable outsourcingResultMainTable);
    int insertOutsourcingResultSub(OutsourcingResultSubTable outsourcingResultSubTable);
    int completeOutsourcingWorkOrde(int workOrderNumber);
    int insertGrindingReturnSub(GrindingReturnSubTable grindingReturnSubTable);
    int updateGrindingReturnSub(OutsourcingResultMainTable outsourcingResultMainTable);
    int GrindingReturnAudit(int id);
    int updateOutsourcingResultSub(OutsourcingResultSubTable outsourcingResultSubTable);
    int delOutsourcing(int id);
    Integer getOutsourcingResultMainAutoid();
    Integer getOutsourcingResultSubAutoid();
    Integer getGrindingReturnSubTableAutoid();
    List<GrindingProcessStandardMain> selectGrindingProcessStandard(int id);
    Result updateOutsourcingResultAutoUniqueCode(List<String> uniqueCodeList);
}
